package cn.sym;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

//springBoot的注解，打了这个注解后表示让springboot去扫描有关springboot的包
@SpringBootApplication
@MapperScan("cn.sym.*.mapper")
//扫描加载权限的Listener
@ServletComponentScan(value = {"cn.sym.system.listener"})
public class PetHomeApp {
    public static void main(String[] args) {
        //加载当前启动类
        SpringApplication.run(PetHomeApp.class);
    }
}
